package sun.springboot.mqtt_integration.core.messageSend;

/**
 * mqtt发送消息对象
 */
public class MqttSendObject {
    /**
     * 主题
     */
    private String topic;
    /**
     * 必达类型-默认
     */
    private Integer qos = 1;
    /**
     * 发送内容
     */
    private String data;

    public MqttSendObject() {
    }


    public MqttSendObject(String topic, Integer qos, String data) {
        this.topic = topic;
        this.qos = qos;
        this.data = data;
    }

    public MqttSendObject(String topic, String data) {
        this.topic = topic;
        this.data = data;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Integer getQos() {
        return qos;
    }

    public void setQos(Integer qos) {
        this.qos = qos;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
